﻿<!-- Views/Admin/ResetPassword.cshtml -->
@model WebApplication1.Models.User

@{
    ViewBag.Title = "重置密码";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container">
    <h2>重置密码</h2>
    <hr />

    <div class="alert alert-warning">
        <h4>确认重置用户密码？</h4>
        <p>用户的密码将被重置为默认密码：123456</p>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">用户信息</h3>
        </div>
        <div class="panel-body">
            <dl class="dl-horizontal">
                <dt>@Html.DisplayNameFor(model => model.UserId)</dt>
                <dd>@Html.DisplayFor(model => model.UserId)</dd>

                <dt>@Html.DisplayNameFor(model => model.Username)</dt>
                <dd>@Html.DisplayFor(model => model.Username)</dd>

                <dt>@Html.DisplayNameFor(model => model.FullName)</dt>
                <dd>@Html.DisplayFor(model => model.FullName)</dd>
            </dl>
        </div>
    </div>

    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="确认重置密码" class="btn btn-warning" />
            <a href="@Url.Action("Users", "Admin")" class="btn btn-default">取消</a>
        </div>
    }
</div>